package com.scau.service.impl.business;

import java.io.Serializable;

import org.springframework.stereotype.Component;

import com.scau.exception.BusinessException;
import com.scau.model.business.OrderList;
import com.scau.service.BaseService;

@Component
public class OrderListService extends BaseService<OrderList> implements Serializable{
	public void save(OrderList orderList) throws BusinessException{
		if (null != orderList && null != orderList.getOrder_id()) {
			if(null != orderList.getId() && 0 != orderList.getId()){
				update(orderList);
			}else{
				add(orderList);
			}
		}else {
			throw new BusinessException("订单ID不能为空!");
		}
	}
}
